package com.ilvyou.data.lcs;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectSns1Entity {
    private Long pkid;
    private Integer ymdayid;
    private Long actid;
    private String periodids;
    private String ruleids;
    private String levelcodes;
    private String poverdays;
    private BigDecimal coverdueamount;
    private Integer poverday;
    private Short sendflag;
    private Timestamp senddate;
    private String createdname;
    private Date createdon;
    private Long createdby;
    private String createdip;

    public Long getPkid() {
        return pkid;
    }

    public void setPkid(Long pkid) {
        this.pkid = pkid;
    }

    public Integer getYmdayid() {
        return ymdayid;
    }

    public void setYmdayid(Integer ymdayid) {
        this.ymdayid = ymdayid;
    }

    public Long getActid() {
        return actid;
    }

    public void setActid(Long actid) {
        this.actid = actid;
    }

    public String getPeriodids() {
        return periodids;
    }

    public void setPeriodids(String periodids) {
        this.periodids = periodids;
    }

    public String getRuleids() {
        return ruleids;
    }

    public void setRuleids(String ruleids) {
        this.ruleids = ruleids;
    }

    public String getLevelcodes() {
        return levelcodes;
    }

    public void setLevelcodes(String levelcodes) {
        this.levelcodes = levelcodes;
    }

    public String getPoverdays() {
        return poverdays;
    }

    public void setPoverdays(String poverdays) {
        this.poverdays = poverdays;
    }

    public BigDecimal getCoverdueamount() {
        return coverdueamount;
    }

    public void setCoverdueamount(BigDecimal coverdueamount) {
        this.coverdueamount = coverdueamount;
    }

    public Integer getPoverday() {
        return poverday;
    }

    public void setPoverday(Integer poverday) {
        this.poverday = poverday;
    }

    public Short getSendflag() {
        return sendflag;
    }

    public void setSendflag(Short sendflag) {
        this.sendflag = sendflag;
    }

    public Timestamp getSenddate() {
        return senddate;
    }

    public void setSenddate(Timestamp senddate) {
        this.senddate = senddate;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public Date getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Date createdon) {
        this.createdon = createdon;
    }

    public Long getCreatedby() {
        return createdby;
    }

    public void setCreatedby(Long createdby) {
        this.createdby = createdby;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectSns1Entity that = (CollectSns1Entity) o;

        if (pkid != null ? !pkid.equals(that.pkid) : that.pkid != null) return false;
        if (ymdayid != null ? !ymdayid.equals(that.ymdayid) : that.ymdayid != null) return false;
        if (actid != null ? !actid.equals(that.actid) : that.actid != null) return false;
        if (periodids != null ? !periodids.equals(that.periodids) : that.periodids != null) return false;
        if (ruleids != null ? !ruleids.equals(that.ruleids) : that.ruleids != null) return false;
        if (levelcodes != null ? !levelcodes.equals(that.levelcodes) : that.levelcodes != null) return false;
        if (poverdays != null ? !poverdays.equals(that.poverdays) : that.poverdays != null) return false;
        if (coverdueamount != null ? !coverdueamount.equals(that.coverdueamount) : that.coverdueamount != null)
            return false;
        if (poverday != null ? !poverday.equals(that.poverday) : that.poverday != null) return false;
        if (sendflag != null ? !sendflag.equals(that.sendflag) : that.sendflag != null) return false;
        if (senddate != null ? !senddate.equals(that.senddate) : that.senddate != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = pkid != null ? pkid.hashCode() : 0;
        result = 31 * result + (ymdayid != null ? ymdayid.hashCode() : 0);
        result = 31 * result + (actid != null ? actid.hashCode() : 0);
        result = 31 * result + (periodids != null ? periodids.hashCode() : 0);
        result = 31 * result + (ruleids != null ? ruleids.hashCode() : 0);
        result = 31 * result + (levelcodes != null ? levelcodes.hashCode() : 0);
        result = 31 * result + (poverdays != null ? poverdays.hashCode() : 0);
        result = 31 * result + (coverdueamount != null ? coverdueamount.hashCode() : 0);
        result = 31 * result + (poverday != null ? poverday.hashCode() : 0);
        result = 31 * result + (sendflag != null ? sendflag.hashCode() : 0);
        result = 31 * result + (senddate != null ? senddate.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        return result;
    }
}
